﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AMEE1
{
    static class Extensions
    {
        public static object Last(this Array ar) {
            if (ar == null)
                return null;
            return ar.GetValue(ar.Length - 1);
        }

    }
}
